
//#include <stdio.h>
//#include "add.h"
//int main()
//{
//	int ret = Add(2, 3);
//	printf("ret = %d\n", ret);
//	return 0;
//}

#include <stdio.h>
#include <stddef.h>;
struct S
{
	char c1;
	int a;
	char c2;
};

#define OFFSETOF(struct_name,member_name) (int)&(((struct_name*)0) ->member_name)

int main()
{
	//struct S s;
	printf("%d\n", OFFSETOF(struct S, c1));
	printf("%d\n", OFFSETOF(struct S, a));
	printf("%d\n", OFFSETOF(struct S, c2));
	//printf("%d\n", sizeof(struct S));
	return 0;
}